import request from '@/utils/Request';

export async function queryCurrent() {
  return request(`/joker/users/getCurrentUser`);
}
export async function clearUser() {
  return request(`/joker/users/clearUser`);
}
export async function queryProvince() {
  return request('/api/geographic/province');
}
export async function queryCity(province) {
  return request(`/api/geographic/city/${province}`);
}
export async function query() {
  return request('/api/users');
}

export async function updateUserInfo(params) {
  return request('/joker/users/update', {
    method: 'POST',
      data: {
    ...params
    }
  });
}
